using System.Collections.Generic;
using Olemas.Models;

namespace Olemas.ViewModels
{
    public class TestsViewModel : GlobalViewModel
    {
        public IEnumerable<Test> Tests { get; private set; }

        /// <param name="tests">Tests from the database.</param>
        /// <param name="currentFaculty">The current selected faculty.</param>
        /// <param name="currentPage">The current page displayed.</param>
        /// <param name="totalPages">The number of pages the books will cover.</param>
        /// <param name="pagesRemaining">The string representation of remaining pages.</param>
        public TestsViewModel(IEnumerable<Test> tests, int currentFaculty, int currentPage, int totalPages, string pagesRemaining)
        {
            this.Tests = tests;
            this.FacultyId = currentFaculty;
            this.CurrentPage = currentPage;
            this.NumberOfPages = totalPages;
            this.PagesRemaining = pagesRemaining;
        }
    }
}